.history-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-title {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.history-actions {
    display: flex;
    gap: 15px;
}

.export-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center; /* 水平居中内部内容 */
    gap: 8px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    margin: 0 auto; /* 水平居中 */
    width: fit-content; /* 让宽度适应内容 */
}

.export-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: grid;
    grid-template-columns: 200px 100px 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.history-time {
    color: #fff;
    font-size: 0.95em;
    opacity: 0.9;
}

.history-gesture {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
}

.history-content {
    color: #fff;
    font-size: 1.05em;
}

.history-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    min-width: 100px;
    text-align: center;
}

.status-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-failure {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.no-records {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .history-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .history-time {
        font-size: 0.85em;
    }
    
    .export-btn {
        padding: 12px 24px;
        font-size: 1em;
    }
} 